import NumberTimer from '../util/number'
import append from '../page/append'
const n = new NumberTimer(300)

n.onNumber = function(number, isPrime){
    append(number, isPrime)
}


// 该模块用于注册事件
var isStart = false
window.onclick = function(){
    if(isStart){
        n.stop()
    }else{
        n.start()
    }
    isStart = !isStart
}
